﻿ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Catering.index" %>
<%@ Register src="~/UCPanle/DDLTool.ascx" tagname="DDLTool" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link rel="stylesheet" type="text/css" href="Style/head_3.css"/>
<link rel="stylesheet" type="text/css" href="Style/center_3.css"/>

<script src="Scripts/jquery_nav.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>

<script src="../../Style/zhezhao.js" type="text/javascript"></script>
<script src="../../Style/xxk.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>

<!--[if IE 8]>
<style type="text/css"> 
.li_div a{ line-height:41px}
</style> 
<![endif]-->
<style type="text/css">
    .tk{display:block; bottom:0px; right:0px; position:fixed;}
    .tk_center{width:331px;height:305px; background:url(Images/images_tk_center.png) no-repeat;padding-bottom:20px;}
    .tk_btn{width:124px;height:25px; position:absolute;bottom:0px;right:10px; z-index:1000;}
    .tk_title{width:100%; height:17px; padding-top:3px;}
    .tk_link{width:80px;height:17px; line-height:17px; float:left;margin-left:10px;color:#000;}
    .tk_hid_img{width:32px; height:17px; float:right; margin-right:5px; }
    .tk_nav{width:100%;height:25px; margin:0px; padding:5px 0px 0px 0px;}
    .tk_nav ul{width:100%;height:25px;padding:0px; margin:0px;}
    .tk_nav li{width:63px; height:25px; line-height:25px; float:left;margin-left:10px; text-align:center; cursor:pointer;}
    .tk_li_over{background:url(Images/images_tk_navbg.jpg) no-repeat;}
    .tk_center_list{width:327px;padding-top:5px; height:240px; margin:0px auto; overflow:auto;}
    .tk_center_list ul{padding:0px;}
    .tk_center_list li{padding-left:10px; height:25px; line-height:25px; border-bottom:1px solid #ccc;}
    .tk_center_list span.riqi{text-align:left; float:left; display:inline-block; width:40px; }
    .tk_center_list span.nr{text-align:left; float:left; display:inline-block; width:187px; }
    .tk_center_list span.banzu{text-align:right; float:left; display:inline-block; width:70px; }
    /* CSS Document */

    .play_div{
    border:solid 10px #898989;background:#fff;padding:30px;width:480px;z-index:1001; position: absolute; display:none;top:30%; left:50%;margin:100px 0px 0px 0px;}
    .bg,.popIframe {
    background-color: #666; display:none;
    width: 100%;
    height: 100%;
    left:0;
    top:0;/*FF IE7*/
    filter:alpha(opacity=50);/*IE*/
    opacity:0.5;/*FF*/
    z-index:1;
    position:fixed!important;/*FF IE7*/
    position:absolute;/*IE6*/
    _top:       expression(eval(document.compatMode &&
                document.compatMode=='CSS1Compat') ?
                documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
                document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/* www.codefans.net IE5 IE5.5*/
    }
    #SearchList table th,#SearchWXBJList table th,#SearchAQYHList table th,#SearchSLYSList table th{height:32px; background-image:url('../images/table_th_bg.gif'); text-align:center; font-weight:bold; line-height:32px;}
    #SearchList table td,#SearchWXBJList table td,#SearchAQYHList table td,#SearchSLYSList table td{height:21px; text-align:center; padding:3px 0px; line-height:21px; border-bottom:1px dashed #b0b0b0;}
    .kftitle{width:100%; height:45px;}
    .kftitle table td{height:25px; line-height:25px; text-align:center;}
    .onkftitle{ background-image:url('../images/images_tk_navbg.jpg'); width:63px; background-repeat:no-repeat; height:25px; line-height:25px; overflow:hidden;}
    .outkftitle{background-image:none; width:63px; height:25px; line-height:25px;}
    .ckgl_table input{ vertical-align:middle;}
    .input_bg0{background-color:#b2b2b2; border: 1px solid aeaeae; height: 22px; line-height: 22px;}
    .right_span A{color:#0066CC;} 
        
</style>

<script type="text/javascript">
    $(document).ready(function () {
        $(".tk_nav li").mouseover(function () {
            $(".tk_nav li").removeClass("tk_li_over");
            $(this).addClass("tk_li_over");
            $(".tk_center_list").css("display", "none");
            $("#" + $(this).attr("cid")).css("display", "block");
        });

        $(".tk_hid_img").click(function () {
            $("#tk_btn").attr("src", "Images/images_tk_btn_hid.png");
            $(".tk_center").css("display", "none");
        })

        $("#tk_btn").click(function () {
            $("#tk_btn").attr("src", "Images/images_tk_btn.png");
            $(".tk_center").css("display", "block");
        });
        if ($("#marquee01 span").length < 16) {
            $("#marquee01").attr("loop", "1");
        }
    });

    function TurnUrl(title, topurl, mainurl) {
        location.href = "Catering_Page/Frame/Main.aspx?toptitle=" + escape(title) + "&topurl=" + escape(topurl) + "&mainurl=" + escape(mainurl);
    }
</script>
<script type="text/javascript">
    function GetData(areaid, classid, orderby, pageIndex, pageSize) {
        Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.GetRoomWaingList(areaid, classid, orderby, pageIndex, pageSize, SetData);
    }
    function GetIniteData() {
        var areaid = document.getElementById("DDLTool1_ddl_Area").value;
        var classid = document.getElementById("DDLTool1_ddl_class").value;
        GetData(areaid, classid, "", 1, 7);
    }
    function SetData(objdata) {
        if (objdata) {
            document.getElementById("SearchList").innerHTML = objdata;
        }
    }
//    function ChangeKFTab(hidenum,showNum) {
//        document.getElementById("tab_kftitle" + hidenum).className = "outkftitle";
//        document.getElementById("tab_kf" + hidenum).style.display="none";
//        document.getElementById("tab_kftitle" + showNum).className = "onkftitle";
//        document.getElementById("tab_kf" + showNum).style.display = "block";

//    }

    function ChangeKFTab(num,onnum) {
        for (var i = 1; i < num; i++) {
            if (document.getElementById("tab_kftitle0" + i)) document.getElementById("tab_kftitle0" + i).className = "outkftitle";
            if (document.getElementById("tab_kf0" + i)) document.getElementById("tab_kf0" + i).style.display = "none";
        }
        document.getElementById("tab_kftitle0" + onnum).className = "onkftitle";
        document.getElementById("tab_kf0" + onnum).style.display = "block";

    }

    function ChangeTimeType(prerado,pretime) {
        var obj = document.getElementById(prerado+"0");
        if (obj.checked) {
            document.getElementById(pretime+"startTime").value = "";
            document.getElementById(pretime+"endTime").value = "";
            document.getElementById(prerado + "Time_Text").style.display = "none";
        }
        else {
            document.getElementById(prerado+"Time_Text").style.display = "";          
        }
    }

    function GetWXBJData(starttime, endtime,pageIndex, pageSize) {
        Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.GetDailyManagementList(starttime, endtime, pageIndex, pageSize,'<%=UserSession%>',SetWXBJData);
    }
    function GetIniteWXBJData() {
        var starttime = document.getElementById("startTime").value;
        var endtime = document.getElementById("endTime").value;
        GetWXBJData(starttime, endtime, 1, 7);
    }
    function SetWXBJData(objdata) {
        document.getElementById("SearchWXBJList").innerHTML = "";
        if (objdata) {
            document.getElementById("SearchWXBJList").innerHTML = objdata;
        }
    }
    function SetDeletCheckBox(obj,prename) {
        if (obj && obj.type == 'checkbox') {
            for (var i = 0; i < 20; i++) {
                var obji = document.getElementById(prename + "_checkbox" + i);
                if (obji && obji.type == "checkbox") {
                    obji.checked = obj.checked;
                }
            }
        }
    }

    function GetDeleteCheckBox(ojbname) {
        var objid = "";
        for (var i = 0; i < 20; i++) {
            var obji = document.getElementById(ojbname + "_checkbox" + i);
            if (obji && obji.type == "checkbox" && obji.checked) {
                objid +=obji.value+ ",";
            }
        }
        return objid;
    }
    function DeleWXBJ() {
        if (confirm("您确定要删除！")) {
            var objid = GetDeleteCheckBox('wxbj');
            if (objid == "") {
                alert("请选择要删除的项！");
            }
            else {
                Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.DeleteDailyManagementList(objid,'<%=UserSession%>',GetDeleteWXBJResult)
            }
        }
    }
    function GetDeleteWXBJResult(num) {
        if (num == 1) {
            alert("删除失败！");
        } else if (num == 2) {
            alert("您没有删除权限！");
        }
        else {
            alert("删除成功！");
        }
        GetIniteWXBJData();
    }

    function GetIniteAQYHData() {
        var starttime = document.getElementById("AQstartTime").value;
        var endtime = document.getElementById("AQendTime").value;
        GetAQYHData(starttime, endtime, 1, 7);
    }

    function GetIniteSLYSData() {
        var starttime = document.getElementById("SLstartTime").value;
        var endtime = document.getElementById("SLendTime").value;
        GetSLYSData(starttime, endtime, 1, 7);
    }

    function GetAQYHData(starttime, endtime, pageIndex, pageSize) {
        Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.GetAQYHDataList(starttime, endtime, pageIndex, pageSize, '<%=UserSession%>', SetAQYHData);
    }

    function GetSLYSData(starttime, endtime, pageIndex, pageSize) {
        Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.GetSLYSDataList(starttime, endtime, pageIndex, pageSize, '<%=UserSession%>', SetSLYSData);
    }

    function SetAQYHData(objdata) {
        document.getElementById("SearchAQYHList").innerHTML = "";
        if (objdata) {
            document.getElementById("SearchAQYHList").innerHTML = objdata;
        }
    }

    function SetSLYSData(objdata) {
        document.getElementById("SearchSLYSList").innerHTML = "";
        if (objdata) {
            document.getElementById("SearchSLYSList").innerHTML = objdata;
        }
    }

    function DeleAQYH() {
        if (confirm("您确定要删除！")) {
            var objid = GetDeleteCheckBox('aqyh');
            if (objid == "") {
                alert("请选择要删除的项！");
            }
            else {
                Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.DeleteAQYHDataList(objid, '<%=UserSession%>', GetDeleteAQYHResult)
            }
        }
    }

    function DeleSLYS() {
        if (confirm("您确定要删除！")) {
            var objid = GetDeleteCheckBox('slys');
            if (objid == "") {
                alert("请选择要删除的项！");
            }
            else {
                Catering.Catering_Page.AjaxHandler.WebServiceKFSZ.DeleteSLYSDataList(objid, '<%=UserSession%>', GetDeleteSLYSResult)
            }
        }
    }

    function GetDeleteAQYHResult(num) {
        if (num == 1) {
            alert("删除失败！");
        } else if (num == 2) {
            alert("您没有删除权限！");
        }
        else {
            alert("删除成功！");
        }
        GetIniteAQYHData();
    }

    function GetDeleteSLYSResult(num) {
        if (num == 1) {
            alert("删除失败！");
        } else if (num == 2) {
            alert("您没有删除权限！");
        }
        else {
            alert("删除成功！");
        }
        GetIniteSLYSData();
    }

    function EditUserPass() {
        $("#txt_OldPass").val("");
        $("#txt_NewPass").val("");
        $("#txt_ReNewPass").val("");
        divshow('div_editpass', 'div_bg');
    }

    function UserPass_Save_Add() {
        var oldpass = $("#txt_OldPass").val();
        var newpass = $("#txt_NewPass").val();
        var renewpass = $("#txt_ReNewPass").val();
        if (newpass == "") {
            alert("新密码不能为空！");
            return;
        }
        if (newpass != renewpass) {
            alert("新密码与确认新密码不一致！");
            return;
        }

        $.ajax({
            type: "Post",
            url: "PostDate.aspx/UserPass_Save_Add",
            data: "{'OldPass':'" + oldpass + "','NewPass':'" + newpass + "','UserID':'<%=UserID %>'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            async: false,
            success: function (data) {
                if (data.d == "5") {//存在
                    alert("原密码错误！");
                }
                else if (data.d == "1") {
                    alert("修改失败！");
                }
                else if (data.d == "2") {
                    alert("修改成功！");
                    history.go(0);
                }
                else {
                    alert("参数错误！");
                }
            }
        });
    }
</script>
</head>

<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager2" runat="server">
<Services>
    <asp:ServiceReference Path="~/Catering_Page/AjaxHandler/WebServiceKFSZ.asmx" />
</Services>
</asp:ScriptManager>
<div class="top clearfix">
  <div class="logo"><a href="#"><img src="Images/LOGO.jpg"  alt="海油发展配餐服务公司"/></a></div>
  <div class="name">
    <div><span class="left_span"><asp:Label ID="lab_time" runat="server"></asp:Label></span><span class="right_span"><asp:Label ID="lab_week" runat="server"></asp:Label></span></div>
    <div><span class="left_span"><span><p></p><asp:Label ID="lab_username" runat="server"></asp:Label></span> <strong>您好!</strong></span><span class="right_span"><p></p><a href="loginOut.aspx" target="_parent">注销</a></span></div>
    <div><span class="left_span"></span><span class="right_span">
    <a href="Catering_Page/Frame/Main.aspx?toptitle=系统通讯&topurl=Top_Mes.aspx&mainurl=Mes/SMSHall.aspx&mstatus=1"><%=this.GetNewsMesssage() %></a>
    <a href="/ShowPage.aspx">展板</a>
    <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "XTGL", "进入查看"))
                                                                   { %><a href="Catering_Page/Frame/Main.aspx?toptitle=系统管理">系统管理</a><%} %>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:EditUserPass();">修改密码</a>&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="LinkButton1"
                                                                           
            runat="server" onclick="LinkButton1_Click">帮助</asp:LinkButton></span></div>
  </div>
</div>
<div class="nav_1">
  <div class="nav_width1000 clearfix">
    <div class="renyuan" style="width:998px;">   
    <dl style="float:left; margin:0px 10px;">在线人员：(<asp:Label ID="lab_count" runat="server"></asp:Label>人)</dl>
    <%if (this.rep_userscount.Items.Count <15)
      { %>
      <dl style="float:left; width:860px;">
    <%}
      else
      { %>
    <marquee target="left" id="marquee01" scrollAmount="2" style="float:left; width:870px;" target="right" onmouseout="start()" behavior="alternate" onmouseover="stop()">
    <%} %>
        <asp:Repeater ID="rep_userscount" runat="server">
            <ItemTemplate>
                <span><%#Eval("UserName")%></span>
            </ItemTemplate>
        </asp:Repeater>
    <%if (this.rep_userscount.Items.Count <15)
      { %>
      </dl>
    <%}
      else
      { %>
    </marquee>
    <%} %>
    </div>
  </div>
</div>
<div class="center_div">
    <div class="jdt" id="idContainer2">
     <TABLE id="idSlider2" border=0 cellSpacing=0 cellPadding=0>
      <TBODY>
      <TR>
        <TD class=td_f><A href="#"><IMG src="images/01.jpg?i=<%=rand %>"></A></TD>
        <TD class=td_f><A href="#"><IMG src="images/02.jpg?i=<%=rand %>"></A></TD>
        <TD class=td_f><A href="#"><IMG src="images/03.jpg?i=<%=rand %>"></A></TD>
        <TD class=td_f><A href="#"><IMG src="images/04.jpg?i=<%=rand %>"></A></TD>
        <TD class=td_f><A href="#"><IMG src="images/05.jpg?i=<%=rand %>"></A></TD>
       </TR></TBODY></TABLE>
    <UL id=idNum class=num></UL>
    </div>    
    <SCRIPT type="text/javascript">
        var forEach = function (array, callback, thisObject) {
            if (array.forEach) {
                array.forEach(callback, thisObject);
            } else {
                for (var i = 0, len = array.length; i < len; i++) { callback.call(thisObject, array[i], i, array); }
            }
        }
        var st = new SlideTrans("idContainer2", "idSlider2", 5, { Vertical: false });

        var nums = [];
        //插入数字
        for (var i = 0, n = st._count - 1; i <= n; ) {
            (nums[i] = $$("idNum").appendChild(document.createElement("li"))).innerHTML = ++i;
        }

        forEach(nums, function (o, i) {
            o.onmouseover = function () { o.className = "on"; st.Auto = false; st.Run(i); }
            o.onmouseout = function () { o.className = ""; st.Auto = true; st.Run(); }
        })

        //设置按钮样式
        st.onStart = function () {
            forEach(nums, function (o, i) { o.className = st.Index == i ? "on" : ""; })
        }
        st.Run();
</SCRIPT>    
  <div class="right_gg">
            <h1>
                <a href="javascript:TurnUrl('通知公告','Top_Tongzhi.aspx','../../NoticeInfo.aspx')">更多</a></h1>
            <ul>
                <asp:Repeater ID="NoticeRept" runat="server">
                    <ItemTemplate>
                        <li class="title"><a href='Catering_Page/Frame/Main.aspx?toptitle=通知公告&topurl=Top_Tongzhi.aspx&mainurl=../../NoticeEdit.aspx?id=<%#Eval ("id") %>'>
                            <%#Eval("Title").ToString().Length > 15 ? Eval("Title").ToString().Substring(0, 15) + "......" : Eval("Title").ToString()%></a>
                        <span style="text-align:right;"><%#Convert.ToDateTime(Eval("Release").ToString()).ToString("yyyy/MM/dd")%></span></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
  <div class="clear_div"><img src="Images/clear_bg.gif" /></div>  
  <div class="ul_div">
            <div class="li_div">
                <div class="li_h1 li_diyi">
                </div>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "YYPC", "进入查看"))
                  { %>
                <a href="javascript:TurnUrl('营养配餐','Top_Caipin.aspx','Caipin/new_peic.aspx')" class="a_diyi">进入</a>
                <div class="li_img img_diyi">
                    <a href="javascript:TurnUrl('营养配餐','Top_Caipin.aspx','Caipin/new_peic.aspx')"></a>
                </div>
                <%}
                  else { %>
                  <a href="#" class="a_diyi">进入</a>
                <div class="li_img img_diyi">
                    <a href="#"></a>
                </div>
                <%}%>
            </div>
            <div class="li_div">
                <div class="li_h1 li_dier">
                </div>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "SSJG", "进入查看"))
                  { %>
                <a href="javascript:TurnUrl('膳食结构','Top_Jiegou.aspx','Jiegoujiankong/RichangJiankong.aspx')" class="a_disi">进入</a>
                <div class="li_img img_disi">
                    <a href="javascript:TurnUrl('膳食结构','Top_Jiegou.aspx','Jiegoujiankong/RichangJiankong.aspx')"></a>
                </div>
                <%}
                  else { %>
                <a href="#" class="a_disi">进入</a>
                <div class="li_img img_disi">
                <a href="#"></a>
                </div>
                <%}%>
            </div>
            <div class="li_div">
                <div class="li_h1 li_disi">                
                </div>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "YYFX", "进入查看"))
                  {
                      if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgsj.aspx", "进入查看"))
                      {  %>
                <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/PersonType_Sum.aspx')" class="a_dier">进入</a>
                <div class="li_img img_dier">
                    <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/PersonType_Sum.aspx')"></a>
                </div>
                <%    }
                      else if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "进入查看"))
                      {
                         %>
                <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/yysfx.aspx')" class="a_dier">进入</a>
                <div class="li_img img_dier">
                    <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/yysfx.aspx')"></a>
                </div>
                <%   
                      }
                      else if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjsh.aspx", "进入查看"))
                      {
                         %>
                <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/yyjsh.aspx')" class="a_dier">进入</a>
                <div class="li_img img_dier">
                    <a href="javascript:TurnUrl('营养分析','Top_ShanShiFenXi.aspx','ShanShiFenXi/yyjsh.aspx')"></a>
                </div>
                <%   
}
                      else { 
                       %>
                <a href="#" class="a_disi">进入</a>
                <div class="li_img img_dier">
                <a href="#"></a>
                </div>
                     <% }
                  }
                  else
                  { %>
                <a href="#" class="a_disi">进入</a>
                <div class="li_img img_dier">
                <a href="#"></a>
                </div>
                <%}%>
            </div>
            <div class="li_div">
                <div class="li_h1 li_diwu">
                </div>
                <%
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "KFYCB", "进入查看"))
                    {
                        if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "Rkgl.aspx", "-1"))
                        {
                %>
                <a href="javascript:TurnUrl('库房与成本','Top_Kufang.aspx','Kufang/Rkgl.aspx')" class="a_diwu">进入</a>
                <div class="li_img img_diwu">
                    <a href="javascript:TurnUrl('库房与成本','Top_Kufang.aspx','Kufang/Rkgl.aspx')"></a>
                </div>
                <%
                        }
                        else
                        {
                %>
                <a href="javascript:TurnUrl('库房与成本','Top_Kufang.aspx','Kufang/Ckgl.aspx')" class="a_diwu">进入</a>
                <div class="li_img img_diwu">
                    <a href="javascript:TurnUrl('库房与成本','Top_Kufang.aspx','Kufang/Ckgl.aspx')"></a>
                </div>
                    <%
                        }
                    }
                    else
                    {  %>
                    <a href="#" class="a_diwu">进入</a>
                    <div class="li_img img_diwu">
                    <a href="#"></a>
                </div>
                   <% }
                %>
            </div>
            <div class="li_div01">
            <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "RCDT", "进入查看"))
              {
                  if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "rbgl.aspx", "人员动态查看"))
                  { %>
                <a href="javascript:TurnUrl('日常动态','Top_Richang.aspx','TopList/Top_Richange2.aspx')" class="a_disan"></a>
                <div class="li_img01 img_disan">
                    <a href="javascript:TurnUrl('日常动态','Top_Richang.aspx','TopList/Top_Richange2.aspx')"></a>
                </div>
                 <%}
                  else
                  {%>
                <a href="javascript:TurnUrl('日常动态','Top_Richang.aspx','tool/kongbaiye.aspx')" class="a_disan"></a>
                <div class="li_img01 img_disan">
                    <a href="javascript:TurnUrl('日常动态','Top_Richang.aspx','tool/kongbaiye.aspx')"></a>
                </div>
                <%}
              }
              else
              { %>
              <a href="#" class="a_disan"></a>
                <div class="li_img01 img_disan">
                    <a href="#"></a>
                </div>
             <%} %>
            </div>
        </div> 
  <div class="footer" style="float:left">
  <strong>中海油能源发展配餐服务公司渤海自营油田作业公司</strong><span>版权所有@CopyRight 2012</span><a href="Catering_Page/Caipin/Caipin_jcsz/shipu_clone05.aspx">新建</a>
  </div>
  
</div>
<div class="two_button">
<%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "MobileSMS.aspx", "手机短信"))
  { %>
        <a href="Catering_Page/Frame/Main.aspx?toptitle=系统通讯&topurl=Top_Mes.aspx&mainurl=Mes/MobileSMS.aspx&mstatus=0">
            <img src="Images/sjdx.gif" /></a><%} %> <a href="Catering_Page/Frame/Main.aspx?toptitle=系统通讯&topurl=Top_Mes.aspx&mainurl=Mes/SMSHall.aspx&mstatus=1">
                <img src="Images/zndx.gif" /></a>
</div>
<%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "AQKC", "查看"))
  { %>
<div class="tk">
    <div style="position:relative;">
        <div class="tk_center" style="display:none;">
            <div class="tk_title">
                <a href="javascript:divshow('div_shwkfxx', 'div_bg');" class="tk_link">更多>></a>
                <a href="javascript:void(0);" class="tk_hid_img"><img src="Images/images_tk_hid.jpg" width="32" height="17" /></a>
            </div>
            <div class="tk_nav">
                <ul>
                    <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "anquankucun.aspx", "查看"))
                      { %>
                    <li class="tk_li_over" cid="tk_main_1">安全库存</li>
                    <%}
                      if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "wxbj.aspx", "查看"))
                      {%>
                    <li cid="tk_main_2">维修报警</li>
                    <%}
                      if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "aqyh.aspx", "查看"))
                      { %>
                    <li cid="tk_main_3">安全隐患</li>
                    <%}
                        if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "slys.aspx", "查看"))
                      { %>
                    <li cid="tk_main_4">上料验收</li>
                    <%} %>
                </ul>
            </div>
            <div id="tk_main_1" class="tk_center_list">
                <ul>
                    <%
    if (dt_jinjie != null && dt_jinjie.Rows.Count > 0)
    {
        foreach (System.Data.DataRow row in dt_jinjie.Rows)
        {
            string tempcon = row["RawName"].ToString() + "：" + row["Content"].ToString();
                                %>
                                    <li><span class="riqi"><%=Convert.ToDateTime(row["Date"].ToString()).ToString("MM-dd")%></span>
                                    <span class="nr"><%=GetSubStringStr(tempcon, 12)%></span>
                                    <span class="banzu"><%=row["CName"].ToString()%></span></li>
                                <%
    }
    }    
                     %>
                </ul>
            </div>
            <div id="tk_main_2" class="tk_center_list" style="display:none;">
                <ul>
                    <%
    if (dt_weixiu != null && dt_weixiu.Rows.Count > 0)
    {
        foreach (System.Data.DataRow row in dt_weixiu.Rows)
        { 
                                %>
                                    <li><span class="riqi"><%=Convert.ToDateTime(row["Date"]).ToString("MM-dd")%></span>
                                    <span class="nr"><%=GetSubStringStr(row["Repair"].ToString(), 12)%></span>
                                    <span class="banzu"><%=row["CName"].ToString()%></span></li>
                                <%
    }
    }    
                     %>
                </ul>
            </div>
            <div id="tk_main_3" class="tk_center_list" style="display:none;">
                <ul>
                    <%
    if (dt_aqyh != null && dt_aqyh.Rows.Count > 0)
    {
        foreach (System.Data.DataRow row in dt_aqyh.Rows)
        { 
                                %>
                                    <li><span class="riqi"><%=Convert.ToDateTime(row["Date"]).ToString("MM-dd")%></span>
                                    <span class="nr"><%=GetSubStringStr(row["temp2"].ToString(),12)%></span>
                                    <span class="banzu"><%=row["CName"].ToString()%></span></li>
                                <%
    }
    }    
                     %>
                </ul>
            </div>
            <div id="tk_main_4" class="tk_center_list" style="display:none;">
                <ul>
                    <%
                        if (dt_slys != null && dt_slys.Rows.Count > 0)
    {
        foreach (System.Data.DataRow row in dt_slys.Rows)
        { 
                                %>
                                    <li><span class="riqi"><%=Convert.ToDateTime(row["Date"]).ToString("MM-dd")%></span>
                                    <span class="nr"><%=GetSubStringStr(row["DishTest"].ToString(), 12)%></span>
                                    <span class="banzu"><%=row["CName"].ToString()%></span></li>
                                <%
    }
    }    
                     %>
                </ul>
            </div>
        </div>
        <div class="tk_btn">
            <img src="Images/images_tk_btn_hid.png" width="124" height="25" id="tk_btn" style=" cursor:pointer;" />
        </div>
    </div>
</div>
<%} %>
<div id="div_bg" class="bg"></div>
<div id="div_shwkfxx" class="play_div" style="width:700px; height:450px; padding:0px; left:25%; margin-top: -100px">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="kftitle">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top:10px;">
            <tr>
                <td width="10">&nbsp;</td>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "anquankucun.aspx", "查看"))
                  { %>
                <td id="tab_kftitle01" style="cursor:pointer;" onclick="ChangeKFTab(5,1)" class="onkftitle">安全库存</td>
                <td width="10"></td>
                <%} %>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "wxbj.aspx", "查看"))
                  { %>
                <td id="tab_kftitle02" style="cursor:pointer;" onclick="ChangeKFTab(5,2)" class="outkftitle">维修报警</td>
                <td width="10"></td>
                <%} %>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "aqyh.aspx", "查看"))
                  { %>
                <td id="tab_kftitle03" style="cursor:pointer;" onclick="ChangeKFTab(5,3)" class="outkftitle">安全隐患</td>
                <td width="10"></td>
                <%} %>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "slys.aspx", "查看"))
                  { %>
                <td id="tab_kftitle04" style="cursor:pointer;" onclick="ChangeKFTab(5,4)" class="outkftitle">上料验收</td>
                <%} %>
                <td>&nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="tab_kf01">
    <div class="Center_Content" style="width:700px; margin:0px; padding:0px;">
        <div class="div_0207" style="width:700px; margin:0px; padding:0px;">
            <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table" style="height:34px">
                <thead>
                    <tr>
                        <td>
                            <uc1:DDLTool ID="DDLTool1" DisplayYear="false" runat="server" />
                        </td>
                        <td width="100" valign="middle" align="right">
                            <a href="javascript:GetIniteData();">查　询</a>
                        </td>
                        <td width="10"></td>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    <div class="Center_Content" id="SearchList" style="width:700px; height:320px; overflow-y:auto;"></div>
    </div>
    <div id="tab_kf02" style="display:none;">
        <div class="Center_Content" style="width:700px; margin:0px; padding:0px;">
            <div class="div_0207" style="width:700px; margin:0px; padding:0px;">
                <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table" style="height:34px">
                    <thead>
                        <tr>
                            <td width="15"></td>
                            <td width="90">
                                <input type="radio" name="radio_wxbj" id="radio_wxbj0" checked="checked" value="0" onclick="ChangeTimeType('radio_wxbj','')" /> 最近一月
                            </td>
                            <td width="90">
                                <input type="radio" name="radio_wxbj" id="radio_wxbj1" value="1" onclick="ChangeTimeType('radio_wxbj','')" /> 按日期范围
                            </td>
                            <td id="radio_wxbjTime_Text" style="display:none;">
                                <input type="text" name="startTime" id="startTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" /> 至 
                                <input type="text" name="endTime" id="endTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" />
                            </td>
                            <td>&nbsp;</td>
                            <td width="100" valign="middle" align="right">
                                <a href="javascript:GetIniteWXBJData();">查　询</a>
                            </td>
                            <td width="10"></td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="Center_Content" id="SearchWXBJList" style="width:700px; height:320px; overflow-y:auto;"></div>
    </div>
    <div id="tab_kf03" style="display:none;">
        <div class="Center_Content" style="width:700px; margin:0px; padding:0px;">
            <div class="div_0207" style="width:700px; margin:0px; padding:0px;">
                <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table" style="height:34px">
                    <thead>
                        <tr>
                            <td width="15">&nbsp;</td>
                            <td width="90">
                                <input type="radio" name="radio_aqyh" id="radio_aqyh0" checked="checked" value="0" onclick="ChangeTimeType('radio_aqyh','AQ')" /> 最近一月
                            </td>
                            <td width="90">
                                <input type="radio" name="radio_aqyh" id="radio_aqyh1" value="1" onclick="ChangeTimeType('radio_aqyh','AQ')" /> 按日期范围
                            </td>
                            <td id="radio_aqyhTime_Text" style="display:none;">
                                <input type="text" name="AQstartTime" id="AQstartTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" /> 至 
                                <input type="text" name="AQendTime" id="AQendTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" />
                            </td>
                            <td>&nbsp;</td>
                            <td width="100" valign="middle" align="right">
                                <a href="javascript:GetIniteAQYHData();">查　询</a>
                            </td>
                            <td width="10"></td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="Center_Content" id="SearchAQYHList" style="width:700px; height:320px; overflow-y:auto;"></div>
    </div>
    <div id="tab_kf04" style="display:none;">
        <div class="Center_Content" style="width:700px; margin:0px; padding:0px;">
            <div class="div_0207" style="width:700px; margin:0px; padding:0px;">
                <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table" style="height:34px">
                    <thead>
                        <tr>
                            <td width="15">&nbsp;</td>
                            <td width="90">
                                <input type="radio" name="radio_slys" id="radio_slys0" checked="checked" value="0" onclick="ChangeTimeType('radio_slys','SL')" /> 最近一月
                            </td>
                            <td width="90">
                                <input type="radio" name="radio_slys" id="radio_slys1" value="1" onclick="ChangeTimeType('radio_slys','SL')" /> 按日期范围
                            </td>
                            <td id="radio_slysTime_Text" style="display:none;">
                                <input type="text" name="AQstartTime" id="SLstartTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" /> 至 
                                <input type="text" name="AQendTime" id="SLendTime" class="input_bg" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:80px;" />
                            </td>
                            <td>&nbsp;</td>
                            <td width="100" valign="middle" align="right">
                                <a href="javascript:GetIniteSLYSData();">查　询</a>
                            </td>
                            <td width="10"></td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="Center_Content" id="SearchSLYSList" style="width:700px; height:320px; overflow-y:auto;"></div>
    </div>
    <div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td align="center" class="close_imgbtn" height="40"><a href="#" onclick='divhidel("div_shwkfxx","div_bg")'>关　闭</a></td>
            </tr>
        </table>
    </div>
    </ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="div_editpass" class="play_div" style="width:300px; height:220px; padding:0px; left:33%; margin-top: -60px">
    <div class="div_0207" style="width:298px; margin:0px 0px 10px;">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:#E5F1FD;">
            <tr>
                <td><h1 style="background-image:none;"><img src="../../../Images/cp_h1_03.gif" />修改密码</h1></td>
                <td width="36" align="center"><a href="javascript:void(0);" onclick="divhidel('div_editpass', 'div_bg')">关闭</a></td>
            </tr>
        </table>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td height="36" width="90" align="right">原　密　码：</td>
            <td width="130"><input type="password" id="txt_OldPass" style="width:130px;" class="input_bg" /></td>
        </tr>
        <tr>
            <td height="36" width="90" align="right">新　密　码：</td>
            <td width="130"><input type="password" id="txt_NewPass" style="width:130px;" class="input_bg" /></td>
        </tr>
        <tr>
            <td height="36" width="90" align="right">确认新密码：</td>
            <td width="130"><input type="password" id="txt_ReNewPass" style="width:130px;" class="input_bg" /></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <input type="button" id="btn_Save_Add" onclick="UserPass_Save_Add()" value="提　交" class="input_btn_a" />
            </td>
            <td align="right">
                <input type="button" id="btn_quxiao" onclick="divhidel('div_editpass', 'div_bg')" value="取　消" class="input_btn_a" />
            </td>
        </tr>
    </table>
</div>
</form>
</body>
</html>
